Release 10.1A: OpenEdge Development:
Web Services
Detecting a SOAP fault
When the Web service returns a SOAP fault, OpenEdge responds depending on how the request is coded. As with 4GL errors, if you do not specify the
NO-ERRORoption on aRUNstatement that invokes a Web service operation or if the operation is invoked using a user-defined function, OpenEdge converts the SOAP fault into a standard Progress error message displayed as follows:
![]()
The error box displays the operation that generated the SOAP fault and the contents of the
<faultstring>element in the SOAP fault message.If the statement that invokes a Web service operation traps an error using the
NO-ERRORoption, this message and the information for any SOAP fault detail appears in theERROR-STATUSsystem handle, and as with all 4GL errors remains available until the next statement is invoked using theNO-ERRORoption. Table 12–1 lists theERROR-STATUShandle attribute that help you to detect and return the information for a SOAP fault. All other attributes and methods on this handle work as they do for any 4GL error condition.
Once you have detected an error (
ERROR-STATUS:ERROR=TRUE), you can determine if it is the result of a SOAP fault using theERROR-OBJECT-DETAILattribute. If a SOAP fault caused the error, this attribute returns a handle to a SOAP fault object containing the SOAP fault information. Otherwise, it has the Unknown value (?).
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |